4b8610f92a3c67b0c1c0574e70d383c8034dcd45
[motion2.git] / server / api / smsQueueReport / smsQueueReport.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 _0xc17c=['../../config/environment','./smsQueueReport.attributes','exports','SmsQueueReport','report_sms_queue','uniqueid','util','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x3466a7,_0x5345ea){var _0x5dac4c=function(_0x3b337c){while(--_0x3b337c){_0x3466a7['push'](_0x3466a7['shift']());}};_0x5dac4c(++_0x5345ea);}(_0xc17c,0x17f));var _0xcc17=function(_0x587ee9,_0x156136){_0x587ee9=_0x587ee9-0x0;var _0x100cbe=_0xc17c[_0x587ee9];return _0x100cbe;};'use strict';var _=require('lodash');var util=require(_0xcc17('0x0'));var logger=require(_0xcc17('0x1'))(_0xcc17('0x2'));var moment=require(_0xcc17('0x3'));var BPromise=require(_0xcc17('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xcc17('0x5'));var rimraf=require(_0xcc17('0x6'));var config=require(_0xcc17('0x7'));var attributes=require(_0xcc17('0x8'));module[_0xcc17('0x9')]=function(_0x256248,_0x291626){return _0x256248['define'](_0xcc17('0xa'),attributes,{'tableName':_0xcc17('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xcc17('0xc')]}],'timestamps':!![]});};