4126be52743312883c4c9f5ac5520f32798f9700
[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 _0x6e69=['lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','uniqueid'];(function(_0x3440a3,_0x9ca7e3){var _0x147fa=function(_0x3d2dc5){while(--_0x3d2dc5){_0x3440a3['push'](_0x3440a3['shift']());}};_0x147fa(++_0x9ca7e3);}(_0x6e69,0x9a));var _0x96e6=function(_0x564e2b,_0x329da5){_0x564e2b=_0x564e2b-0x0;var _0x19d84e=_0x6e69[_0x564e2b];return _0x19d84e;};'use strict';var _=require(_0x96e6('0x0'));var util=require('util');var logger=require(_0x96e6('0x1'))(_0x96e6('0x2'));var moment=require(_0x96e6('0x3'));var BPromise=require(_0x96e6('0x4'));var rp=require(_0x96e6('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x96e6('0x6'));var config=require(_0x96e6('0x7'));var attributes=require(_0x96e6('0x8'));module[_0x96e6('0x9')]=function(_0x15b45c,_0x55e4f5){return _0x15b45c[_0x96e6('0xa')](_0x96e6('0xb'),attributes,{'tableName':_0x96e6('0xc'),'paranoid':![],'indexes':[{'fields':[_0x96e6('0xd')]}],'timestamps':!![]});};