de392defa74e43c1f98f7c39b917eda8ebe17aec
[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 _0x6bf2=['define','VoiceCallReport','uniqueid','lodash','util','../../config/logger','bluebird','path','rimraf','./voiceCallReport.attributes','exports'];(function(_0x181466,_0x4afe92){var _0x457a5b=function(_0x55ae04){while(--_0x55ae04){_0x181466['push'](_0x181466['shift']());}};_0x457a5b(++_0x4afe92);}(_0x6bf2,0x14d));var _0x26bf=function(_0x59fffc,_0x526e06){_0x59fffc=_0x59fffc-0x0;var _0x4e168e=_0x6bf2[_0x59fffc];return _0x4e168e;};'use strict';var _=require(_0x26bf('0x0'));var util=require(_0x26bf('0x1'));var logger=require(_0x26bf('0x2'))('api');var moment=require('moment');var BPromise=require(_0x26bf('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x26bf('0x4'));var rimraf=require(_0x26bf('0x5'));var config=require('../../config/environment');var attributes=require(_0x26bf('0x6'));module[_0x26bf('0x7')]=function(_0xb20616,_0x318c19){return _0xb20616[_0x26bf('0x8')](_0x26bf('0x9'),attributes,{'tableName':'report_call','paranoid':![],'indexes':[{'fields':[_0x26bf('0xa')]}],'timestamps':!![]});};