9364a87a54c3a36cf80923bdb6957ce9900edbfe
[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 _0x9d35=['openchannel_queues','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./openchannelQueue.attributes','exports','define','OpenchannelQueue'];(function(_0x2179f1,_0x21c653){var _0x176ec9=function(_0x4c4a4c){while(--_0x4c4a4c){_0x2179f1['push'](_0x2179f1['shift']());}};_0x176ec9(++_0x21c653);}(_0x9d35,0x1c1));var _0x59d3=function(_0x1ae78f,_0x122ed2){_0x1ae78f=_0x1ae78f-0x0;var _0x5baf80=_0x9d35[_0x1ae78f];return _0x5baf80;};'use strict';var _=require(_0x59d3('0x0'));var util=require(_0x59d3('0x1'));var logger=require(_0x59d3('0x2'))(_0x59d3('0x3'));var moment=require(_0x59d3('0x4'));var BPromise=require(_0x59d3('0x5'));var rp=require(_0x59d3('0x6'));var fs=require('fs');var path=require(_0x59d3('0x7'));var rimraf=require('rimraf');var config=require(_0x59d3('0x8'));var attributes=require(_0x59d3('0x9'));module[_0x59d3('0xa')]=function(_0x2ed256,_0x530bde){return _0x2ed256[_0x59d3('0xb')](_0x59d3('0xc'),attributes,{'tableName':_0x59d3('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};