9e6958b413bc4cab3707be9e9fb35c6895917543
[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 _0xf924=['../../config/environment','./smsTransferReport.attributes','exports','define','SmsTransferReport','report_sms_transfer','uniqueid','util','bluebird','request-promise','path','rimraf'];(function(_0xb6e2ea,_0x3b26e9){var _0x2a57bb=function(_0x2a1ac9){while(--_0x2a1ac9){_0xb6e2ea['push'](_0xb6e2ea['shift']());}};_0x2a57bb(++_0x3b26e9);}(_0xf924,0x1db));var _0x4f92=function(_0x38d8e2,_0x48603c){_0x38d8e2=_0x38d8e2-0x0;var _0x5afbee=_0xf924[_0x38d8e2];return _0x5afbee;};'use strict';var _=require('lodash');var util=require(_0x4f92('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x4f92('0x1'));var rp=require(_0x4f92('0x2'));var fs=require('fs');var path=require(_0x4f92('0x3'));var rimraf=require(_0x4f92('0x4'));var config=require(_0x4f92('0x5'));var attributes=require(_0x4f92('0x6'));module[_0x4f92('0x7')]=function(_0x1ea764,_0x1b1d59){return _0x1ea764[_0x4f92('0x8')](_0x4f92('0x9'),attributes,{'tableName':_0x4f92('0xa'),'paranoid':![],'indexes':[{'name':_0x4f92('0xb'),'fields':['uniqueid']}],'timestamps':!![]});};