74f9df240ead1e881926a1d385b4477a790d2cb5
[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 _0xd26a=['VoiceCallReport','report_call','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment','exports'];(function(_0x5ad866,_0x63f8b0){var _0x231923=function(_0x3d15ad){while(--_0x3d15ad){_0x5ad866['push'](_0x5ad866['shift']());}};_0x231923(++_0x63f8b0);}(_0xd26a,0x162));var _0xad26=function(_0x1fb875,_0x367c53){_0x1fb875=_0x1fb875-0x0;var _0x354ac6=_0xd26a[_0x1fb875];return _0x354ac6;};'use strict';var _=require(_0xad26('0x0'));var util=require(_0xad26('0x1'));var logger=require(_0xad26('0x2'))('api');var moment=require(_0xad26('0x3'));var BPromise=require(_0xad26('0x4'));var rp=require(_0xad26('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xad26('0x6'));var config=require(_0xad26('0x7'));var attributes=require('./voiceCallReport.attributes');module[_0xad26('0x8')]=function(_0x29cfdb,_0x28af4e){return _0x29cfdb['define'](_0xad26('0x9'),attributes,{'tableName':_0xad26('0xa'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};