Built motion from commit 5293bb2a.|2.6.30
[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 _0xfbc1=['bluebird','path','rimraf','../../config/environment','exports','define','UserVoiceQueue','user_has_voice_queues','lodash','util','../../config/logger','api'];(function(_0x1dbf47,_0x221fc0){var _0x542d3a=function(_0x47c137){while(--_0x47c137){_0x1dbf47['push'](_0x1dbf47['shift']());}};_0x542d3a(++_0x221fc0);}(_0xfbc1,0x17c));var _0x1fbc=function(_0xfbdff6,_0x2af690){_0xfbdff6=_0xfbdff6-0x0;var _0x4cb9be=_0xfbc1[_0xfbdff6];return _0x4cb9be;};'use strict';var _=require(_0x1fbc('0x0'));var util=require(_0x1fbc('0x1'));var logger=require(_0x1fbc('0x2'))(_0x1fbc('0x3'));var moment=require('moment');var BPromise=require(_0x1fbc('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1fbc('0x5'));var rimraf=require(_0x1fbc('0x6'));var config=require(_0x1fbc('0x7'));var attributes=require('./userVoiceQueue.attributes');module[_0x1fbc('0x8')]=function(_0x2ab5ce,_0x55c9bf){return _0x2ab5ce[_0x1fbc('0x9')](_0x1fbc('0xa'),attributes,{'tableName':_0x1fbc('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};