Ejemplo n.º 1
0
 public GSheetsController(Amo amo, ProcessQueue processQueue, GSheets gSheets, Log log)
 {
     _amo          = amo;
     _processQueue = processQueue;
     _gSheets      = gSheets;
     _log          = log;
 }
Ejemplo n.º 2
0
 public WebhookController(Amo amo, ProcessQueue processQueue, Log log, RecentlyUpdatedEntityFilter filter, GSheets gSheets)
 {
     _amo          = amo;
     _processQueue = processQueue;
     _log          = log;
     _filter       = filter;
     _gSheets      = gSheets;
 }
Ejemplo n.º 3
0
 public SiteFormController(Amo amo, ProcessQueue processQueue, Log log, GSheets gSheets)
 {
     _amo          = amo;
     _processQueue = processQueue;
     _log          = log;
     _gSheets      = gSheets;
     _path         = $@"logs\siteform\{DateTime.Today.Year}-{DateTime.Today.Month}-{DateTime.Today.Day}.log";
 }
Ejemplo n.º 4
0
 public GSheetsProcessor(int leadnumber, Amo amo, GSheets gSheets, ProcessQueue processQueue, Log log, CancellationToken token)
 {
     _processQueue = processQueue;
     _token        = token;
     _log          = log;
     _amo          = amo;
     _leadNumber   = leadnumber;
     _service      = gSheets.GetService();
 }
Ejemplo n.º 5
0
 public TestingController(Amo amo, ProcessQueue processQueue, GSheets gSheets, Log log, Cred1C cred1C, RecentlyUpdatedEntityFilter filter, Uber uber)
 {
     _amo          = amo;
     _processQueue = processQueue;
     _gSheets      = gSheets;
     _log          = log;
     _cred1C       = cred1C;
     _filter       = filter;
     locker        = new();
     _uber         = uber;
 }
Ejemplo n.º 6
0
        public SiteFormRetailProcessor(Amo amo, Log log, FormRequest formRequest, ProcessQueue processQueue, CancellationToken token, GSheets gSheets, string taskName)
        {
            _amo          = amo;
            _log          = log;
            _formRequest  = formRequest;
            _processQueue = processQueue;
            _token        = token;
            _gSheets      = gSheets;
            _taskname     = taskName;

            var acc = amo.GetAccountById(28395871);

            _leadRepo = acc.GetRepo <Lead>();
            _contRepo = acc.GetRepo <Contact>();
        }
Ejemplo n.º 7
0
        public ConferencePaidProcessor(Amo amo, Log log, ProcessQueue processQueue, CancellationToken token, GSheets gSheets, string taskName, string phone, string email)
        {
            _amo          = amo;
            _log          = log;
            _processQueue = processQueue;
            _token        = token;
            _gSheets      = gSheets;
            _taskName     = taskName;
            _phone        = phone.Trim().Replace("+", "").Replace("-", "").Replace(" ", "").Replace("(", "").Replace(")", "");
            _email        = email.Trim().Replace(" ", "");

            var acc = amo.GetAccountById(19453687);

            _leadRepo = acc.GetRepo <Lead>();
            _contRepo = acc.GetRepo <Contact>();
            _compRepo = acc.GetRepo <Company>();
        }
Ejemplo n.º 8
0
 /// <summary>
 /// Формирует отчёт для корпоративного отдела. Выгружает список компаний с которыми отсутствовали недавние контакты.
 /// </summary>
 internal AbandonedCompaniesProcessor(AmoAccount acc, ProcessQueue processQueue, GSheets gSheets, string spreadsheetId, long dateFrom, long dateTo, string taskName, CancellationToken token)
     : base(acc, processQueue, gSheets, spreadsheetId, dateFrom, dateTo, taskName, token)
 {
 }
Ejemplo n.º 9
0
 public ReportsController(Amo amo, ProcessQueue processQueue, GSheets gSheets)
 {
     _amo          = amo;
     _processQueue = processQueue;
     _gSheets      = gSheets;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Формирует отчёт по продажам для корпоративного отдела.
 /// </summary>
 internal CorpReportProcessor(AmoAccount acc, ProcessQueue processQueue, GSheets gSheets, string spreadsheetId, long dateFrom, long dateTo, string taskName, CancellationToken token)
     : base(acc, processQueue, gSheets, spreadsheetId, dateFrom, dateTo, taskName, token)
 {
     _locker = new();
 }
Ejemplo n.º 11
0
        public RetailPaidProcessor(Amo amo, Log log, ProcessQueue processQueue, CancellationToken token, GSheets gSheets, string taskName, string phone, string email, string price)
        {
            _log          = log;
            _processQueue = processQueue;
            _token        = token;
            _taskName     = taskName;
            _phone        = phone.Trim().Replace("+", "").Replace("-", "").Replace(" ", "").Replace("(", "").Replace(")", "");
            _email        = email.Trim().Replace(" ", "");
            int.TryParse(price, out _price);

            var acc = amo.GetAccountById(28395871);

            _contRepo = acc.GetRepo <Contact>();
        }
Ejemplo n.º 12
0
 public InitialLeadProcessor(int leadNumber, AmoAccount acc, Amo amo, GSheets gSheets, ProcessQueue processQueue, Log log, CancellationToken token)
     : base(leadNumber, acc, processQueue, log, token)
 {
     _gSheets = gSheets;
     _amo     = amo;
 }