Built motion from commit 167bccf5.|2.6.7
[motion2.git] / server / api / smsQueue / smsQueue.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 _0x65b3=['path','rimraf','./smsQueue.attributes','exports','define','SmsQueue','sms_queues','lodash','util','api','moment','bluebird','request-promise'];(function(_0x2e689d,_0x4c3b29){var _0x540160=function(_0xac5c81){while(--_0xac5c81){_0x2e689d['push'](_0x2e689d['shift']());}};_0x540160(++_0x4c3b29);}(_0x65b3,0xf1));var _0x365b=function(_0x258919,_0x1754e6){_0x258919=_0x258919-0x0;var _0xfbd68b=_0x65b3[_0x258919];return _0xfbd68b;};'use strict';var _=require(_0x365b('0x0'));var util=require(_0x365b('0x1'));var logger=require('../../config/logger')(_0x365b('0x2'));var moment=require(_0x365b('0x3'));var BPromise=require(_0x365b('0x4'));var rp=require(_0x365b('0x5'));var fs=require('fs');var path=require(_0x365b('0x6'));var rimraf=require(_0x365b('0x7'));var config=require('../../config/environment');var attributes=require(_0x365b('0x8'));module[_0x365b('0x9')]=function(_0x173d2a,_0x10f970){return _0x173d2a[_0x365b('0xa')](_0x365b('0xb'),attributes,{'tableName':_0x365b('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};