72dc483e48e537f34b41ee53f5b41b7dca591de9
[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 _0xbe23=['../../config/environment','./voiceCallReport.attributes','exports','VoiceCallReport','report_call','uniqueid','lodash','api','moment','bluebird','path','rimraf'];(function(_0x4a3472,_0x402876){var _0x4fe794=function(_0x1b0f7e){while(--_0x1b0f7e){_0x4a3472['push'](_0x4a3472['shift']());}};_0x4fe794(++_0x402876);}(_0xbe23,0x1c2));var _0x3be2=function(_0x2e5221,_0x330661){_0x2e5221=_0x2e5221-0x0;var _0x893264=_0xbe23[_0x2e5221];return _0x893264;};'use strict';var _=require(_0x3be2('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x3be2('0x1'));var moment=require(_0x3be2('0x2'));var BPromise=require(_0x3be2('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3be2('0x4'));var rimraf=require(_0x3be2('0x5'));var config=require(_0x3be2('0x6'));var attributes=require(_0x3be2('0x7'));module[_0x3be2('0x8')]=function(_0x3d9e74,_0x573121){return _0x3d9e74['define'](_0x3be2('0x9'),attributes,{'tableName':_0x3be2('0xa'),'paranoid':![],'indexes':[{'fields':[_0x3be2('0xb')]}],'timestamps':!![]});};