bf63f883fb323ffd7e429b0f2359ef43ce295716
[motion2.git] / server / api / voiceCallReport / voiceCallReport.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 _0x3cd9=['rimraf','../../config/environment','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','uniqueid','util','../../config/logger','api','moment','request-promise','path'];(function(_0x51ed62,_0x574379){var _0x34aee3=function(_0x2958bc){while(--_0x2958bc){_0x51ed62['push'](_0x51ed62['shift']());}};_0x34aee3(++_0x574379);}(_0x3cd9,0x1ba));var _0x93cd=function(_0x3b56c0,_0xe100d8){_0x3b56c0=_0x3b56c0-0x0;var _0x377efe=_0x3cd9[_0x3b56c0];return _0x377efe;};'use strict';var _=require('lodash');var util=require(_0x93cd('0x0'));var logger=require(_0x93cd('0x1'))(_0x93cd('0x2'));var moment=require(_0x93cd('0x3'));var BPromise=require('bluebird');var rp=require(_0x93cd('0x4'));var fs=require('fs');var path=require(_0x93cd('0x5'));var rimraf=require(_0x93cd('0x6'));var config=require(_0x93cd('0x7'));var attributes=require(_0x93cd('0x8'));module[_0x93cd('0x9')]=function(_0x2445c6,_0x2a446c){return _0x2445c6[_0x93cd('0xa')](_0x93cd('0xb'),attributes,{'tableName':_0x93cd('0xc'),'paranoid':![],'indexes':[{'fields':[_0x93cd('0xd')]}],'timestamps':!![]});};