d9eae81ff83ee07970d4e2775f6ebfa028dc450e
[motion2.git] / server / api / voiceQueuesLog / voiceQueuesLog.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 _0xa750=['exports','VoiceQueuesLog','voice_queues_log','event_dtm','dtm','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./voiceQueuesLog.attributes'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xa750,0xaa));var _0x0a75=function(_0x5e28ae,_0x162b93){_0x5e28ae=_0x5e28ae-0x0;var _0x36fb02=_0xa750[_0x5e28ae];return _0x36fb02;};'use strict';var _=require(_0x0a75('0x0'));var util=require(_0x0a75('0x1'));var logger=require(_0x0a75('0x2'))('api');var moment=require(_0x0a75('0x3'));var BPromise=require(_0x0a75('0x4'));var rp=require(_0x0a75('0x5'));var fs=require('fs');var path=require(_0x0a75('0x6'));var rimraf=require(_0x0a75('0x7'));var config=require(_0x0a75('0x8'));var attributes=require(_0x0a75('0x9'));module[_0x0a75('0xa')]=function(_0x22936f,_0x5e1545){return _0x22936f['define'](_0x0a75('0xb'),attributes,{'tableName':_0x0a75('0xc'),'paranoid':![],'indexes':[{'name':_0x0a75('0xd'),'fields':['event',_0x0a75('0xe')]}],'timestamps':![]});};