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 _0x7e18=['rimraf','../../config/environment','exports','Campaign','campaigns','lodash','../../config/logger','moment','bluebird','request-promise'];(function(_0x1694f5,_0x49b7c3){var _0x5b4321=function(_0x58c183){while(--_0x58c183){_0x1694f5['push'](_0x1694f5['shift']());}};_0x5b4321(++_0x49b7c3);}(_0x7e18,0x87));var _0x87e1=function(_0x1fa594,_0x3102ed){_0x1fa594=_0x1fa594-0x0;var _0x3200e9=_0x7e18[_0x1fa594];return _0x3200e9;};'use strict';var _=require(_0x87e1('0x0'));var util=require('util');var logger=require(_0x87e1('0x1'))('api');var moment=require(_0x87e1('0x2'));var BPromise=require(_0x87e1('0x3'));var rp=require(_0x87e1('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x87e1('0x5'));var config=require(_0x87e1('0x6'));var attributes=require('./campaign.attributes');module[_0x87e1('0x7')]=function(_0x41e663,_0x36c100){return _0x41e663['define'](_0x87e1('0x8'),attributes,{'tableName':_0x87e1('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};