55b664db6e89b445703c750d8807afa162ec0a89
[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 _0xd9ef=['bluebird','request-promise','path','../../config/environment','./voiceCallReport.attributes','exports','report_call','lodash','util','../../config/logger','api','moment'];(function(_0x357bf6,_0x2d73ab){var _0x327602=function(_0x13cf7a){while(--_0x13cf7a){_0x357bf6['push'](_0x357bf6['shift']());}};_0x327602(++_0x2d73ab);}(_0xd9ef,0x133));var _0xfd9e=function(_0x29c5a9,_0x1e057b){_0x29c5a9=_0x29c5a9-0x0;var _0x1068ed=_0xd9ef[_0x29c5a9];return _0x1068ed;};'use strict';var _=require(_0xfd9e('0x0'));var util=require(_0xfd9e('0x1'));var logger=require(_0xfd9e('0x2'))(_0xfd9e('0x3'));var moment=require(_0xfd9e('0x4'));var BPromise=require(_0xfd9e('0x5'));var rp=require(_0xfd9e('0x6'));var fs=require('fs');var path=require(_0xfd9e('0x7'));var rimraf=require('rimraf');var config=require(_0xfd9e('0x8'));var attributes=require(_0xfd9e('0x9'));module[_0xfd9e('0xa')]=function(_0x6c7a97,_0x5127c2){return _0x6c7a97['define']('VoiceCallReport',attributes,{'tableName':_0xfd9e('0xb'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};