88abe3ac1b5007ffceb37f367162804d0e819b78
[motion2.git] / server / api / openchannelQueue / openchannelQueue.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 _0x93a0=['request-promise','path','../../config/environment','./openchannelQueue.attributes','exports','define','OpenchannelQueue','openchannel_queues','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x4970d6,_0x2e6b07){var _0x2857f3=function(_0x447128){while(--_0x447128){_0x4970d6['push'](_0x4970d6['shift']());}};_0x2857f3(++_0x2e6b07);}(_0x93a0,0x190));var _0x093a=function(_0x1b96b5,_0x37de42){_0x1b96b5=_0x1b96b5-0x0;var _0x390d56=_0x93a0[_0x1b96b5];return _0x390d56;};'use strict';var _=require(_0x093a('0x0'));var util=require(_0x093a('0x1'));var logger=require(_0x093a('0x2'))(_0x093a('0x3'));var moment=require(_0x093a('0x4'));var BPromise=require(_0x093a('0x5'));var rp=require(_0x093a('0x6'));var fs=require('fs');var path=require(_0x093a('0x7'));var rimraf=require('rimraf');var config=require(_0x093a('0x8'));var attributes=require(_0x093a('0x9'));module[_0x093a('0xa')]=function(_0x1889da,_0x33148e){return _0x1889da[_0x093a('0xb')](_0x093a('0xc'),attributes,{'tableName':_0x093a('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};