Built motion from commit (unavailable).|2.5.22
[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 _0x0eeb=['path','rimraf','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x3d0b38,_0x5b4bda){var _0x5f19fb=function(_0xb9cbdb){while(--_0xb9cbdb){_0x3d0b38['push'](_0x3d0b38['shift']());}};_0x5f19fb(++_0x5b4bda);}(_0x0eeb,0x166));var _0xb0ee=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x0eeb[_0x57b54c];return _0x59cc19;};'use strict';var _=require(_0xb0ee('0x0'));var util=require(_0xb0ee('0x1'));var logger=require(_0xb0ee('0x2'))(_0xb0ee('0x3'));var moment=require('moment');var BPromise=require(_0xb0ee('0x4'));var rp=require(_0xb0ee('0x5'));var fs=require('fs');var path=require(_0xb0ee('0x6'));var rimraf=require(_0xb0ee('0x7'));var config=require('../../config/environment');var attributes=require(_0xb0ee('0x8'));module[_0xb0ee('0x9')]=function(_0x2ddcee,_0x15592b){return _0x2ddcee[_0xb0ee('0xa')](_0xb0ee('0xb'),attributes,{'tableName':_0xb0ee('0xc'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};