c53b9d5a5694ff518a06e9777b304808a71dbfcd
[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 _0xf6ba=['path','rimraf','../../config/environment','VoiceCallReport','uniqueid','api','moment','bluebird'];(function(_0x2d0dc2,_0xad0c8a){var _0xc16d94=function(_0xb5c836){while(--_0xb5c836){_0x2d0dc2['push'](_0x2d0dc2['shift']());}};_0xc16d94(++_0xad0c8a);}(_0xf6ba,0xad));var _0xaf6b=function(_0x5f0089,_0x227e2c){_0x5f0089=_0x5f0089-0x0;var _0x193892=_0xf6ba[_0x5f0089];return _0x193892;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xaf6b('0x0'));var moment=require(_0xaf6b('0x1'));var BPromise=require(_0xaf6b('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xaf6b('0x3'));var rimraf=require(_0xaf6b('0x4'));var config=require(_0xaf6b('0x5'));var attributes=require('./voiceCallReport.attributes');module['exports']=function(_0x2fe30c,_0x11c034){return _0x2fe30c['define'](_0xaf6b('0x6'),attributes,{'tableName':'report_call','paranoid':![],'indexes':[{'fields':[_0xaf6b('0x7')]}],'timestamps':!![]});};