12d1443dc99c13daef5859dc3c864b35b786348f
[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 _0xfd23=['request-promise','./userVoiceQueue.attributes','exports','define','UserVoiceQueue','user_has_voice_queues','api','moment','bluebird'];(function(_0x562f3b,_0x4c65ae){var _0x1edd55=function(_0xe67e06){while(--_0xe67e06){_0x562f3b['push'](_0x562f3b['shift']());}};_0x1edd55(++_0x4c65ae);}(_0xfd23,0x19b));var _0x3fd2=function(_0x1b4b23,_0x5dd6d6){_0x1b4b23=_0x1b4b23-0x0;var _0x2a325b=_0xfd23[_0x1b4b23];return _0x2a325b;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x3fd2('0x0'));var moment=require(_0x3fd2('0x1'));var BPromise=require(_0x3fd2('0x2'));var rp=require(_0x3fd2('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x3fd2('0x4'));module[_0x3fd2('0x5')]=function(_0x283c81,_0x17b9a0){return _0x283c81[_0x3fd2('0x6')](_0x3fd2('0x7'),attributes,{'tableName':_0x3fd2('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};