310cd53e6239683cd331ed15eb2e30f544b0f6a8
[motion2.git] / server / api / userVoiceQueue / userVoiceQueue.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 _0xc1d1=['rimraf','../../config/environment','exports','define','UserVoiceQueue','user_has_voice_queues','lodash','request-promise','path'];(function(_0x4b1032,_0x36952e){var _0x5a1d55=function(_0x282e9b){while(--_0x282e9b){_0x4b1032['push'](_0x4b1032['shift']());}};_0x5a1d55(++_0x36952e);}(_0xc1d1,0x1ec));var _0x1c1d=function(_0x4ea438,_0x121371){_0x4ea438=_0x4ea438-0x0;var _0x397e67=_0xc1d1[_0x4ea438];return _0x397e67;};'use strict';var _=require(_0x1c1d('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x1c1d('0x1'));var fs=require('fs');var path=require(_0x1c1d('0x2'));var rimraf=require(_0x1c1d('0x3'));var config=require(_0x1c1d('0x4'));var attributes=require('./userVoiceQueue.attributes');module[_0x1c1d('0x5')]=function(_0x2a34b2,_0x14a578){return _0x2a34b2[_0x1c1d('0x6')](_0x1c1d('0x7'),attributes,{'tableName':_0x1c1d('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};