Built motion from commit 19a84241.|2.5.34
[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 _0xe01d=['../../config/logger','api','moment','bluebird','request-promise','path','exports','define','VoiceCallReport','report_call','lodash'];(function(_0x138adb,_0x193fee){var _0x1b27f2=function(_0x5e97a2){while(--_0x5e97a2){_0x138adb['push'](_0x138adb['shift']());}};_0x1b27f2(++_0x193fee);}(_0xe01d,0x1c2));var _0xde01=function(_0x195f71,_0x40c2bd){_0x195f71=_0x195f71-0x0;var _0x3bb3bc=_0xe01d[_0x195f71];return _0x3bb3bc;};'use strict';var _=require(_0xde01('0x0'));var util=require('util');var logger=require(_0xde01('0x1'))(_0xde01('0x2'));var moment=require(_0xde01('0x3'));var BPromise=require(_0xde01('0x4'));var rp=require(_0xde01('0x5'));var fs=require('fs');var path=require(_0xde01('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./voiceCallReport.attributes');module[_0xde01('0x7')]=function(_0x6b7a6a,_0x331de0){return _0x6b7a6a[_0xde01('0x8')](_0xde01('0x9'),attributes,{'tableName':_0xde01('0xa'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};