Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / voiceAgentReport / voiceAgentReport.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 _0xd5b2=['report_agent','uniqueid','destuniqueid','lodash','util','../../config/logger','api','moment','bluebird','path','./voiceAgentReport.attributes','define','VoiceAgentReport'];(function(_0x8c43de,_0x90ff31){var _0xa6591b=function(_0x469716){while(--_0x469716){_0x8c43de['push'](_0x8c43de['shift']());}};_0xa6591b(++_0x90ff31);}(_0xd5b2,0x1f1));var _0x2d5b=function(_0x33032e,_0x31411a){_0x33032e=_0x33032e-0x0;var _0x13316b=_0xd5b2[_0x33032e];return _0x13316b;};'use strict';var _=require(_0x2d5b('0x0'));var util=require(_0x2d5b('0x1'));var logger=require(_0x2d5b('0x2'))(_0x2d5b('0x3'));var moment=require(_0x2d5b('0x4'));var BPromise=require(_0x2d5b('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2d5b('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x2d5b('0x7'));module['exports']=function(_0x2da8f6,_0x37ce48){return _0x2da8f6[_0x2d5b('0x8')](_0x2d5b('0x9'),attributes,{'tableName':_0x2d5b('0xa'),'paranoid':![],'indexes':[{'fields':[_0x2d5b('0xb'),_0x2d5b('0xc')]}],'timestamps':!![]});};