Built motion from commit a61a4a20.|2.5.46
[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 _0x7330=['path','rimraf','./chatQueue.attributes','exports','define','ChatQueue','chat_queues','../../config/logger','api','moment','bluebird'];(function(_0x4a605f,_0x4a3b03){var _0x33facd=function(_0x5a9b79){while(--_0x5a9b79){_0x4a605f['push'](_0x4a605f['shift']());}};_0x33facd(++_0x4a3b03);}(_0x7330,0x75));var _0x0733=function(_0x2891a6,_0x972149){_0x2891a6=_0x2891a6-0x0;var _0x2fbc7d=_0x7330[_0x2891a6];return _0x2fbc7d;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x0733('0x0'))(_0x0733('0x1'));var moment=require(_0x0733('0x2'));var BPromise=require(_0x0733('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0733('0x4'));var rimraf=require(_0x0733('0x5'));var config=require('../../config/environment');var attributes=require(_0x0733('0x6'));module[_0x0733('0x7')]=function(_0x4cb88b,_0x4576c7){return _0x4cb88b[_0x0733('0x8')](_0x0733('0x9'),attributes,{'tableName':_0x0733('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};