Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / voiceQueue / voiceQueue.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 _0x5a55=['api','bluebird','request-promise','path','rimraf','./voiceQueue.attributes','exports','define','VoiceQueue','voice_queues','../../config/logger'];(function(_0x184f0a,_0x140ae8){var _0x58c8eb=function(_0xc92eac){while(--_0xc92eac){_0x184f0a['push'](_0x184f0a['shift']());}};_0x58c8eb(++_0x140ae8);}(_0x5a55,0x128));var _0x55a5=function(_0x2b9cf5,_0x2a7804){_0x2b9cf5=_0x2b9cf5-0x0;var _0xd0cf15=_0x5a55[_0x2b9cf5];return _0xd0cf15;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x55a5('0x0'))(_0x55a5('0x1'));var moment=require('moment');var BPromise=require(_0x55a5('0x2'));var rp=require(_0x55a5('0x3'));var fs=require('fs');var path=require(_0x55a5('0x4'));var rimraf=require(_0x55a5('0x5'));var config=require('../../config/environment');var attributes=require(_0x55a5('0x6'));module[_0x55a5('0x7')]=function(_0x5a53f4,_0x3d7907){return _0x5a53f4[_0x55a5('0x8')](_0x55a5('0x9'),attributes,{'tableName':_0x55a5('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};