5f3e3010fcbe956cab9e0e79faed0c7b16838132
[motion2.git] / server / api / chatQueue / chatQueue.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 _0xe55d=['./chatQueue.attributes','ChatQueue','lodash','../../config/logger','api','moment','path','../../config/environment'];(function(_0x4fd46f,_0x413008){var _0x159525=function(_0x5c75a8){while(--_0x5c75a8){_0x4fd46f['push'](_0x4fd46f['shift']());}};_0x159525(++_0x413008);}(_0xe55d,0xa2));var _0xde55=function(_0x2c1652,_0x3b0a1c){_0x2c1652=_0x2c1652-0x0;var _0x31a721=_0xe55d[_0x2c1652];return _0x31a721;};'use strict';var _=require(_0xde55('0x0'));var util=require('util');var logger=require(_0xde55('0x1'))(_0xde55('0x2'));var moment=require(_0xde55('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xde55('0x4'));var rimraf=require('rimraf');var config=require(_0xde55('0x5'));var attributes=require(_0xde55('0x6'));module['exports']=function(_0x48a11c,_0x38f7e7){return _0x48a11c['define'](_0xde55('0x7'),attributes,{'tableName':'chat_queues','paranoid':![],'indexes':[],'timestamps':!![]});};