6bf6dd7e3a7206e3519b2fffb47aed35ed1f6016
[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 _0x3a3d=['bluebird','path','rimraf','../../config/environment','exports','OpenchannelTransferReport','report_openchannel_transfer','uniqueid','lodash','util','../../config/logger','api','moment'];(function(_0x33f7b6,_0x8ce322){var _0x2cec9f=function(_0x3a8e0d){while(--_0x3a8e0d){_0x33f7b6['push'](_0x33f7b6['shift']());}};_0x2cec9f(++_0x8ce322);}(_0x3a3d,0x7d));var _0xd3a3=function(_0xb5e4c7,_0x1eadec){_0xb5e4c7=_0xb5e4c7-0x0;var _0x3c99c4=_0x3a3d[_0xb5e4c7];return _0x3c99c4;};'use strict';var _=require(_0xd3a3('0x0'));var util=require(_0xd3a3('0x1'));var logger=require(_0xd3a3('0x2'))(_0xd3a3('0x3'));var moment=require(_0xd3a3('0x4'));var BPromise=require(_0xd3a3('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd3a3('0x6'));var rimraf=require(_0xd3a3('0x7'));var config=require(_0xd3a3('0x8'));var attributes=require('./openchannelTransferReport.attributes');module[_0xd3a3('0x9')]=function(_0xb521fb,_0x1b3992){return _0xb521fb['define'](_0xd3a3('0xa'),attributes,{'tableName':_0xd3a3('0xb'),'paranoid':![],'indexes':[{'name':_0xd3a3('0xc'),'fields':[_0xd3a3('0xc')]}],'timestamps':!![]});};