bcedf0c32271703797b4082e58c17294e6656a1c
[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 _0xf712=['api','bluebird','path','../../config/environment','exports','Campaign','campaigns','util'];(function(_0x43ae1e,_0x18e8cc){var _0x422527=function(_0x1b55c3){while(--_0x1b55c3){_0x43ae1e['push'](_0x43ae1e['shift']());}};_0x422527(++_0x18e8cc);}(_0xf712,0xb7));var _0x2f71=function(_0x4ec7e4,_0x5626ae){_0x4ec7e4=_0x4ec7e4-0x0;var _0x34d34f=_0xf712[_0x4ec7e4];return _0x34d34f;};'use strict';var _=require('lodash');var util=require(_0x2f71('0x0'));var logger=require('../../config/logger')(_0x2f71('0x1'));var moment=require('moment');var BPromise=require(_0x2f71('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2f71('0x3'));var rimraf=require('rimraf');var config=require(_0x2f71('0x4'));var attributes=require('./campaign.attributes');module[_0x2f71('0x5')]=function(_0x5c6dfe,_0x4eacfe){return _0x5c6dfe['define'](_0x2f71('0x6'),attributes,{'tableName':_0x2f71('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};