Built motion from commit b5a10faa.|2.6.13
[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 _0x8be7=['../../config/environment','./voiceCallReport.attributes','VoiceCallReport','report_call','lodash','api','moment','bluebird','path'];(function(_0x167f65,_0x5966d4){var _0x4d64d1=function(_0x410443){while(--_0x410443){_0x167f65['push'](_0x167f65['shift']());}};_0x4d64d1(++_0x5966d4);}(_0x8be7,0x82));var _0x78be=function(_0x1dc634,_0x7f73e3){_0x1dc634=_0x1dc634-0x0;var _0x40b4dc=_0x8be7[_0x1dc634];return _0x40b4dc;};'use strict';var _=require(_0x78be('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x78be('0x1'));var moment=require(_0x78be('0x2'));var BPromise=require(_0x78be('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x78be('0x4'));var rimraf=require('rimraf');var config=require(_0x78be('0x5'));var attributes=require(_0x78be('0x6'));module['exports']=function(_0x69a7f2,_0x2ca988){return _0x69a7f2['define'](_0x78be('0x7'),attributes,{'tableName':_0x78be('0x8'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};