18fb5bc1b38dd1094ad6472be41288f9984a0678
[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 _0x9e8d=['rimraf','../../config/environment','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','uniqueid','../../config/logger','api','moment','request-promise','path'];(function(_0x14f7e7,_0x34e6d7){var _0x249b57=function(_0x4d131a){while(--_0x4d131a){_0x14f7e7['push'](_0x14f7e7['shift']());}};_0x249b57(++_0x34e6d7);}(_0x9e8d,0x10c));var _0xd9e8=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0x9e8d[_0x2b4411];return _0x8e41ef;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xd9e8('0x0'))(_0xd9e8('0x1'));var moment=require(_0xd9e8('0x2'));var BPromise=require('bluebird');var rp=require(_0xd9e8('0x3'));var fs=require('fs');var path=require(_0xd9e8('0x4'));var rimraf=require(_0xd9e8('0x5'));var config=require(_0xd9e8('0x6'));var attributes=require(_0xd9e8('0x7'));module[_0xd9e8('0x8')]=function(_0x54ce17,_0x823b1b){return _0x54ce17[_0xd9e8('0x9')](_0xd9e8('0xa'),attributes,{'tableName':_0xd9e8('0xb'),'paranoid':![],'indexes':[{'fields':[_0xd9e8('0xc')]}],'timestamps':!![]});};