Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / whatsappQueue / whatsappQueue.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 _0xe8f5=['rimraf','../../config/environment','./whatsappQueue.attributes','exports','define','whatsapp_queues','lodash','util','moment','bluebird','path'];(function(_0x34d275,_0x5d84ee){var _0x1379cc=function(_0x320fbe){while(--_0x320fbe){_0x34d275['push'](_0x34d275['shift']());}};_0x1379cc(++_0x5d84ee);}(_0xe8f5,0x69));var _0x5e8f=function(_0x2c6bf1,_0x109f93){_0x2c6bf1=_0x2c6bf1-0x0;var _0x5e26a2=_0xe8f5[_0x2c6bf1];return _0x5e26a2;};'use strict';var _=require(_0x5e8f('0x0'));var util=require(_0x5e8f('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x5e8f('0x2'));var BPromise=require(_0x5e8f('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5e8f('0x4'));var rimraf=require(_0x5e8f('0x5'));var config=require(_0x5e8f('0x6'));var attributes=require(_0x5e8f('0x7'));module[_0x5e8f('0x8')]=function(_0x1594fe,_0x3cafaa){return _0x1594fe[_0x5e8f('0x9')]('WhatsappQueue',attributes,{'tableName':_0x5e8f('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};