コード例 #1
0
ファイル: WrapUpCodes.cs プロジェクト: alexismoussesian/pcsd
        public void TestInitialize()
        {
            _pureCloud = new PureCloud
            {
                ClientId     = StaticConfig.ClientId,
                ClientSecret = StaticConfig.ClientSecret,
                Environment  = StaticConfig.Environment
            };

            _pureCloud.Login();
            _pureCloud.GetUsers();
            _pureCloud.GetQueues();
            _pureCloud.GetLanguages();
        }
コード例 #2
0
ファイル: SqlPlugin.cs プロジェクト: alexismoussesian/pcsd
        public void TestInitialize()
        {
            _pureCloud = new PureCloud
            {
                ClientId     = StaticConfig.ClientId,
                ClientSecret = StaticConfig.ClientSecret,
                Environment  = StaticConfig.Environment
            };
            _pureCloud.Login();

            var args = new string[] { $"/clientid={StaticConfig.ClientId}",
                                      $"/clientsecret={StaticConfig.ClientSecret}",
                                      $"/environment={StaticConfig.Environment}",
                                      $"/target-sql={StaticConfig.Targetsql}" };

            _pureCloud.GetQueues();
            _pureCloud.GetUsers();
            _pureCloud.GetWrapUpCodes();

            _sql.Initialize(args);
            _sql.InitializeDictionaries(_pureCloud.ListOfQueues, _pureCloud.ListOfLanguages, _pureCloud.ListOfSkills, _pureCloud.ListOfUsers, _pureCloud.ListOfWrapUpCodes, _pureCloud.ListOfEdgeServers, _pureCloud.ListOfCampaigns, _pureCloud.ListOfContactLists, _pureCloud.ListOfPresences, _pureCloud.ListOfDivisions, _pureCloud.ListOfDataTables, _pureCloud.ListOfGroups, _pureCloud.ListOfRoles);
        }
コード例 #3
0
        public void TestInitialize()
        {
            _pluginsFolder = FileHelper.GetPluginsFolder();

            _args = new string[] { $"/clientid={StaticConfig.ClientId}",
                                   $"/clientsecret={StaticConfig.ClientSecret}",
                                   $"/environment={StaticConfig.Environment}",
                                   //"/stats=user",
                                   $"/target-sql={StaticConfig.Targetsql}",
                                   "/music" };

            // Load plugins
            _loadedPlugins = new PluginLoader().LoadPlugins(_pluginsFolder, _args, out _pluginsCmdArgsHelp);
            _pureCloud     = new PureCloud
            {
                ClientId     = StaticConfig.ClientId,
                ClientSecret = StaticConfig.ClientSecret,
                Environment  = StaticConfig.Environment
            };

            _pureCloud.Login();
            _pureCloud.GetUsers();
        }