64133d1a61ebe93b443c826791606d4f0caff6e7
[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 _0xa0f9=['path','../../config/environment','exports','define','OpenchannelQueue','lodash','util','../../config/logger','api'];(function(_0x1bb58c,_0x2c8a4d){var _0x277586=function(_0x11fd4c){while(--_0x11fd4c){_0x1bb58c['push'](_0x1bb58c['shift']());}};_0x277586(++_0x2c8a4d);}(_0xa0f9,0x1f4));var _0x9a0f=function(_0xcda377,_0x1e2678){_0xcda377=_0xcda377-0x0;var _0x1c024f=_0xa0f9[_0xcda377];return _0x1c024f;};'use strict';var _=require(_0x9a0f('0x0'));var util=require(_0x9a0f('0x1'));var logger=require(_0x9a0f('0x2'))(_0x9a0f('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x9a0f('0x4'));var rimraf=require('rimraf');var config=require(_0x9a0f('0x5'));var attributes=require('./openchannelQueue.attributes');module[_0x9a0f('0x6')]=function(_0x1139bb,_0x3068bc){return _0x1139bb[_0x9a0f('0x7')](_0x9a0f('0x8'),attributes,{'tableName':'openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});};