d1f20f2be4bb3b0ac8f1bfb57bb33892995785a8
[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 _0x3924=['path','rimraf','./voiceCallReport.attributes','exports','report_call','uniqueid','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x3df653,_0x3a86ee){var _0x2679d9=function(_0x31b697){while(--_0x31b697){_0x3df653['push'](_0x3df653['shift']());}};_0x2679d9(++_0x3a86ee);}(_0x3924,0x74));var _0x4392=function(_0x22c379,_0x2fee25){_0x22c379=_0x22c379-0x0;var _0x268eb6=_0x3924[_0x22c379];return _0x268eb6;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x4392('0x0'))(_0x4392('0x1'));var moment=require(_0x4392('0x2'));var BPromise=require(_0x4392('0x3'));var rp=require(_0x4392('0x4'));var fs=require('fs');var path=require(_0x4392('0x5'));var rimraf=require(_0x4392('0x6'));var config=require('../../config/environment');var attributes=require(_0x4392('0x7'));module[_0x4392('0x8')]=function(_0x3faf24,_0x2576e1){return _0x3faf24['define']('VoiceCallReport',attributes,{'tableName':_0x4392('0x9'),'paranoid':![],'indexes':[{'fields':[_0x4392('0xa')]}],'timestamps':!![]});};