Built motion from commit (unavailable).|2.5.14
[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 _0xe124=['api','request-promise','path','../../config/environment','exports','Campaign','campaigns','lodash','util','../../config/logger'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xe124,0x101));var _0x4e12=function(_0x5ba25f,_0x531f9f){_0x5ba25f=_0x5ba25f-0x0;var _0x355f70=_0xe124[_0x5ba25f];return _0x355f70;};'use strict';var _=require(_0x4e12('0x0'));var util=require(_0x4e12('0x1'));var logger=require(_0x4e12('0x2'))(_0x4e12('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x4e12('0x4'));var fs=require('fs');var path=require(_0x4e12('0x5'));var rimraf=require('rimraf');var config=require(_0x4e12('0x6'));var attributes=require('./campaign.attributes');module[_0x4e12('0x7')]=function(_0x120529,_0x16e10b){return _0x120529['define'](_0x4e12('0x8'),attributes,{'tableName':_0x4e12('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};