Built motion from commit f0a64034.|2.6.11
[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 _0xe3d7=['util','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','SmsTransferReport','report_sms_transfer','uniqueid','lodash'];(function(_0x5a359a,_0x8af0d0){var _0x117628=function(_0x2d86c0){while(--_0x2d86c0){_0x5a359a['push'](_0x5a359a['shift']());}};_0x117628(++_0x8af0d0);}(_0xe3d7,0xf6));var _0x7e3d=function(_0xe9afde,_0x5d4cae){_0xe9afde=_0xe9afde-0x0;var _0x45fb26=_0xe3d7[_0xe9afde];return _0x45fb26;};'use strict';var _=require(_0x7e3d('0x0'));var util=require(_0x7e3d('0x1'));var logger=require('../../config/logger')(_0x7e3d('0x2'));var moment=require(_0x7e3d('0x3'));var BPromise=require('bluebird');var rp=require(_0x7e3d('0x4'));var fs=require('fs');var path=require(_0x7e3d('0x5'));var rimraf=require(_0x7e3d('0x6'));var config=require(_0x7e3d('0x7'));var attributes=require('./smsTransferReport.attributes');module[_0x7e3d('0x8')]=function(_0x3be1ca,_0x13d223){return _0x3be1ca[_0x7e3d('0x9')](_0x7e3d('0xa'),attributes,{'tableName':_0x7e3d('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x7e3d('0xc')]}],'timestamps':!![]});};