4decc6eba2a0f235356e276a216f942000e7a17b
[motion2.git] / server / api / campaign / campaign.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xdaf1=['util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./campaign.attributes','Campaign','campaigns'];(function(_0x5b34c8,_0x424a2b){var _0x569f3b=function(_0x5dd227){while(--_0x5dd227){_0x5b34c8['push'](_0x5b34c8['shift']());}};_0x569f3b(++_0x424a2b);}(_0xdaf1,0x1bc));var _0x1daf=function(_0x1081cf,_0x31b91f){_0x1081cf=_0x1081cf-0x0;var _0x17ef66=_0xdaf1[_0x1081cf];return _0x17ef66;};'use strict';var _=require('lodash');var util=require(_0x1daf('0x0'));var logger=require(_0x1daf('0x1'))(_0x1daf('0x2'));var moment=require(_0x1daf('0x3'));var BPromise=require(_0x1daf('0x4'));var rp=require(_0x1daf('0x5'));var fs=require('fs');var path=require(_0x1daf('0x6'));var rimraf=require(_0x1daf('0x7'));var config=require(_0x1daf('0x8'));var attributes=require(_0x1daf('0x9'));module['exports']=function(_0x3d49c2,_0x15139d){return _0x3d49c2['define'](_0x1daf('0xa'),attributes,{'tableName':_0x1daf('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};