d6018ffe16cafc8af7782779e7df054da6e09b07
[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 _0x319e=['../../config/environment','exports','define','report_call','uniqueid','api','moment','request-promise','path','rimraf'];(function(_0x3df138,_0x327e3a){var _0x4c1709=function(_0xe9d5f6){while(--_0xe9d5f6){_0x3df138['push'](_0x3df138['shift']());}};_0x4c1709(++_0x327e3a);}(_0x319e,0xaf));var _0xe319=function(_0xf10a7f,_0x3e4cd3){_0xf10a7f=_0xf10a7f-0x0;var _0x57a0fc=_0x319e[_0xf10a7f];return _0x57a0fc;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xe319('0x0'));var moment=require(_0xe319('0x1'));var BPromise=require('bluebird');var rp=require(_0xe319('0x2'));var fs=require('fs');var path=require(_0xe319('0x3'));var rimraf=require(_0xe319('0x4'));var config=require(_0xe319('0x5'));var attributes=require('./voiceCallReport.attributes');module[_0xe319('0x6')]=function(_0x1fbeec,_0x1b2d42){return _0x1fbeec[_0xe319('0x7')]('VoiceCallReport',attributes,{'tableName':_0xe319('0x8'),'paranoid':![],'indexes':[{'fields':[_0xe319('0x9')]}],'timestamps':!![]});};