f3fd7c00a8c1a2d5c9dbdcd44e3e604650587ceb
[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 _0xa727=['rimraf','../../config/environment','./voiceCallReport.attributes','exports','define','VoiceCallReport','uniqueid','util','../../config/logger','moment','bluebird','request-promise','path'];(function(_0x1c390b,_0x485ec0){var _0xe217bd=function(_0x4cbdf2){while(--_0x4cbdf2){_0x1c390b['push'](_0x1c390b['shift']());}};_0xe217bd(++_0x485ec0);}(_0xa727,0x173));var _0x7a72=function(_0x21235e,_0x1b95b4){_0x21235e=_0x21235e-0x0;var _0x3d947d=_0xa727[_0x21235e];return _0x3d947d;};'use strict';var _=require('lodash');var util=require(_0x7a72('0x0'));var logger=require(_0x7a72('0x1'))('api');var moment=require(_0x7a72('0x2'));var BPromise=require(_0x7a72('0x3'));var rp=require(_0x7a72('0x4'));var fs=require('fs');var path=require(_0x7a72('0x5'));var rimraf=require(_0x7a72('0x6'));var config=require(_0x7a72('0x7'));var attributes=require(_0x7a72('0x8'));module[_0x7a72('0x9')]=function(_0x40e4a9,_0x4c3e48){return _0x40e4a9[_0x7a72('0xa')](_0x7a72('0xb'),attributes,{'tableName':'report_call','paranoid':![],'indexes':[{'fields':[_0x7a72('0xc')]}],'timestamps':!![]});};