d1e1a5496afcc137ac41104f2ea899198c2e3fa5
[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 _0x2df9=['define','OpenchannelQueue','openchannel_queues','util','../../config/logger','api','moment','request-promise','rimraf','../../config/environment','./openchannelQueue.attributes','exports'];(function(_0x5d1960,_0x2abea5){var _0xe1d7ae=function(_0x604de2){while(--_0x604de2){_0x5d1960['push'](_0x5d1960['shift']());}};_0xe1d7ae(++_0x2abea5);}(_0x2df9,0x13b));var _0x92df=function(_0x40d299,_0x384d1b){_0x40d299=_0x40d299-0x0;var _0x509690=_0x2df9[_0x40d299];return _0x509690;};'use strict';var _=require('lodash');var util=require(_0x92df('0x0'));var logger=require(_0x92df('0x1'))(_0x92df('0x2'));var moment=require(_0x92df('0x3'));var BPromise=require('bluebird');var rp=require(_0x92df('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x92df('0x5'));var config=require(_0x92df('0x6'));var attributes=require(_0x92df('0x7'));module[_0x92df('0x8')]=function(_0x411eb0,_0xccaecd){return _0x411eb0[_0x92df('0x9')](_0x92df('0xa'),attributes,{'tableName':_0x92df('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};