786ad30e3d86cb80c2313189b1c20ea78ddc9fc5
[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 _0xcd0d=['lodash','api','moment','bluebird','request-promise','path','../../config/environment','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','uniqueid'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0xcd0d,0xc3));var _0xdcd0=function(_0x128443,_0x2fe025){_0x128443=_0x128443-0x0;var _0x1a4ce1=_0xcd0d[_0x128443];return _0x1a4ce1;};'use strict';var _=require(_0xdcd0('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xdcd0('0x1'));var moment=require(_0xdcd0('0x2'));var BPromise=require(_0xdcd0('0x3'));var rp=require(_0xdcd0('0x4'));var fs=require('fs');var path=require(_0xdcd0('0x5'));var rimraf=require('rimraf');var config=require(_0xdcd0('0x6'));var attributes=require(_0xdcd0('0x7'));module[_0xdcd0('0x8')]=function(_0x19b779,_0x536627){return _0x19b779[_0xdcd0('0x9')](_0xdcd0('0xa'),attributes,{'tableName':_0xdcd0('0xb'),'paranoid':![],'indexes':[{'fields':[_0xdcd0('0xc')]}],'timestamps':!![]});};