8483e7a0ab2ea224e20886b5ba33117e1a1bfdc2
[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 _0xcc96=['util','api','moment','bluebird','request-promise','path','../../config/environment','./voiceCallReport.attributes','exports','report_call','uniqueid'];(function(_0x164909,_0x1c1d15){var _0x4a7693=function(_0x26e8d1){while(--_0x26e8d1){_0x164909['push'](_0x164909['shift']());}};_0x4a7693(++_0x1c1d15);}(_0xcc96,0x134));var _0x6cc9=function(_0x2ef569,_0x424150){_0x2ef569=_0x2ef569-0x0;var _0x42f909=_0xcc96[_0x2ef569];return _0x42f909;};'use strict';var _=require('lodash');var util=require(_0x6cc9('0x0'));var logger=require('../../config/logger')(_0x6cc9('0x1'));var moment=require(_0x6cc9('0x2'));var BPromise=require(_0x6cc9('0x3'));var rp=require(_0x6cc9('0x4'));var fs=require('fs');var path=require(_0x6cc9('0x5'));var rimraf=require('rimraf');var config=require(_0x6cc9('0x6'));var attributes=require(_0x6cc9('0x7'));module[_0x6cc9('0x8')]=function(_0x154bbe,_0x3b3520){return _0x154bbe['define']('VoiceCallReport',attributes,{'tableName':_0x6cc9('0x9'),'paranoid':![],'indexes':[{'fields':[_0x6cc9('0xa')]}],'timestamps':!![]});};