1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0xaf07=['bluebird','request-promise','path','../../config/environment','./campaign.attributes','exports','Campaign','../../config/logger','moment'];(function(_0x501980,_0x382668){var _0x181e59=function(_0x440064){while(--_0x440064){_0x501980['push'](_0x501980['shift']());}};_0x181e59(++_0x382668);}(_0xaf07,0x115));var _0x7af0=function(_0x4d95de,_0x26ff83){_0x4d95de=_0x4d95de-0x0;var _0x2fd50f=_0xaf07[_0x4d95de];return _0x2fd50f;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x7af0('0x0'))('api');var moment=require(_0x7af0('0x1'));var BPromise=require(_0x7af0('0x2'));var rp=require(_0x7af0('0x3'));var fs=require('fs');var path=require(_0x7af0('0x4'));var rimraf=require('rimraf');var config=require(_0x7af0('0x5'));var attributes=require(_0x7af0('0x6'));module[_0x7af0('0x7')]=function(_0x2a2f33,_0x2bbeed){return _0x2a2f33['define'](_0x7af0('0x8'),attributes,{'tableName':'campaigns','paranoid':![],'indexes':[],'timestamps':!![]});};