Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / smsTransferReport / smsTransferReport.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 _0xc992=['path','../../config/environment','exports','define','SmsTransferReport','report_sms_transfer','uniqueid','lodash','../../config/logger','api','bluebird','request-promise'];(function(_0x54b198,_0x49aecc){var _0x392d73=function(_0x14009b){while(--_0x14009b){_0x54b198['push'](_0x54b198['shift']());}};_0x392d73(++_0x49aecc);}(_0xc992,0xbb));var _0x2c99=function(_0x4c610c,_0x283f3c){_0x4c610c=_0x4c610c-0x0;var _0x3dc0b8=_0xc992[_0x4c610c];return _0x3dc0b8;};'use strict';var _=require(_0x2c99('0x0'));var util=require('util');var logger=require(_0x2c99('0x1'))(_0x2c99('0x2'));var moment=require('moment');var BPromise=require(_0x2c99('0x3'));var rp=require(_0x2c99('0x4'));var fs=require('fs');var path=require(_0x2c99('0x5'));var rimraf=require('rimraf');var config=require(_0x2c99('0x6'));var attributes=require('./smsTransferReport.attributes');module[_0x2c99('0x7')]=function(_0x44c15b,_0x299dd9){return _0x44c15b[_0x2c99('0x8')](_0x2c99('0x9'),attributes,{'tableName':_0x2c99('0xa'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x2c99('0xb')]}],'timestamps':!![]});};