public GSheetsController(Amo amo, ProcessQueue processQueue, GSheets gSheets, Log log) { _amo = amo; _processQueue = processQueue; _gSheets = gSheets; _log = log; }
public WebhookController(Amo amo, ProcessQueue processQueue, Log log, RecentlyUpdatedEntityFilter filter, GSheets gSheets) { _amo = amo; _processQueue = processQueue; _log = log; _filter = filter; _gSheets = gSheets; }
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"; }
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(); }
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; }
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>(); }
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>(); }
/// <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) { }
public ReportsController(Amo amo, ProcessQueue processQueue, GSheets gSheets) { _amo = amo; _processQueue = processQueue; _gSheets = gSheets; }
/// <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(); }
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>(); }
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; }