11e0e92219709d7da4b53b933714e5d79bb8b706
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.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 _0xcd3c=['uniqueid','util','api','moment','bluebird','path','rimraf','../../config/environment','./openchannelTransferReport.attributes','exports','define','OpenchannelTransferReport','report_openchannel_transfer'];(function(_0x2e97bf,_0x569e2b){var _0x3b2110=function(_0x558783){while(--_0x558783){_0x2e97bf['push'](_0x2e97bf['shift']());}};_0x3b2110(++_0x569e2b);}(_0xcd3c,0x105));var _0xccd3=function(_0x3a7349,_0x15c523){_0x3a7349=_0x3a7349-0x0;var _0x467c70=_0xcd3c[_0x3a7349];return _0x467c70;};'use strict';var _=require('lodash');var util=require(_0xccd3('0x0'));var logger=require('../../config/logger')(_0xccd3('0x1'));var moment=require(_0xccd3('0x2'));var BPromise=require(_0xccd3('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xccd3('0x4'));var rimraf=require(_0xccd3('0x5'));var config=require(_0xccd3('0x6'));var attributes=require(_0xccd3('0x7'));module[_0xccd3('0x8')]=function(_0x154275,_0x24fe08){return _0x154275[_0xccd3('0x9')](_0xccd3('0xa'),attributes,{'tableName':_0xccd3('0xb'),'paranoid':![],'indexes':[{'name':_0xccd3('0xc'),'fields':[_0xccd3('0xc')]}],'timestamps':!![]});};