Built motion from commit (unavailable).|2.5.21
[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 _0x827f=['path','rimraf','../../config/environment','exports','define','VoiceCallReport','report_call','lodash','../../config/logger','api','moment','request-promise'];(function(_0x303354,_0x50b90a){var _0x4fe71b=function(_0x3c0705){while(--_0x3c0705){_0x303354['push'](_0x303354['shift']());}};_0x4fe71b(++_0x50b90a);}(_0x827f,0x1f3));var _0xf827=function(_0x59d89e,_0x55edf5){_0x59d89e=_0x59d89e-0x0;var _0x554e93=_0x827f[_0x59d89e];return _0x554e93;};'use strict';var _=require(_0xf827('0x0'));var util=require('util');var logger=require(_0xf827('0x1'))(_0xf827('0x2'));var moment=require(_0xf827('0x3'));var BPromise=require('bluebird');var rp=require(_0xf827('0x4'));var fs=require('fs');var path=require(_0xf827('0x5'));var rimraf=require(_0xf827('0x6'));var config=require(_0xf827('0x7'));var attributes=require('./voiceCallReport.attributes');module[_0xf827('0x8')]=function(_0x1d0264,_0x3c0d94){return _0x1d0264[_0xf827('0x9')](_0xf827('0xa'),attributes,{'tableName':_0xf827('0xb'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};