d1c65599be649bfe211e172436f259a140480e42
[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 _0x2c22=['VoiceCallReport','report_call','uniqueid','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./voiceCallReport.attributes','exports','define'];(function(_0x59908b,_0xdb10c2){var _0x440ba3=function(_0x1fb540){while(--_0x1fb540){_0x59908b['push'](_0x59908b['shift']());}};_0x440ba3(++_0xdb10c2);}(_0x2c22,0x11b));var _0x22c2=function(_0x9afd9a,_0x1a1741){_0x9afd9a=_0x9afd9a-0x0;var _0x3a82dc=_0x2c22[_0x9afd9a];return _0x3a82dc;};'use strict';var _=require(_0x22c2('0x0'));var util=require('util');var logger=require(_0x22c2('0x1'))(_0x22c2('0x2'));var moment=require(_0x22c2('0x3'));var BPromise=require(_0x22c2('0x4'));var rp=require(_0x22c2('0x5'));var fs=require('fs');var path=require(_0x22c2('0x6'));var rimraf=require(_0x22c2('0x7'));var config=require('../../config/environment');var attributes=require(_0x22c2('0x8'));module[_0x22c2('0x9')]=function(_0x2504b2,_0x481c69){return _0x2504b2[_0x22c2('0xa')](_0x22c2('0xb'),attributes,{'tableName':_0x22c2('0xc'),'paranoid':![],'indexes':[{'fields':[_0x22c2('0xd')]}],'timestamps':!![]});};