b83d22f2d85a4bd663baa7b2146971c1b3bc31af
[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 _0x96c3=['rimraf','../../config/environment','exports','VoiceCallReport','uniqueid','lodash','../../config/logger','moment','bluebird','request-promise'];(function(_0x6a3450,_0x5edf9e){var _0x579dc4=function(_0x5a8172){while(--_0x5a8172){_0x6a3450['push'](_0x6a3450['shift']());}};_0x579dc4(++_0x5edf9e);}(_0x96c3,0xff));var _0x396c=function(_0x47271a,_0x2089d2){_0x47271a=_0x47271a-0x0;var _0x2bf54b=_0x96c3[_0x47271a];return _0x2bf54b;};'use strict';var _=require(_0x396c('0x0'));var util=require('util');var logger=require(_0x396c('0x1'))('api');var moment=require(_0x396c('0x2'));var BPromise=require(_0x396c('0x3'));var rp=require(_0x396c('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x396c('0x5'));var config=require(_0x396c('0x6'));var attributes=require('./voiceCallReport.attributes');module[_0x396c('0x7')]=function(_0x37b8e1,_0x56a86e){return _0x37b8e1['define'](_0x396c('0x8'),attributes,{'tableName':'report_call','paranoid':![],'indexes':[{'fields':[_0x396c('0x9')]}],'timestamps':!![]});};