Built motion from commit ddca4d0d.|2.5.47
[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 _0x0b23=['lodash','util','../../config/logger','moment','path','./whatsappQueue.attributes','exports','define','WhatsappQueue','whatsapp_queues'];(function(_0x3098dc,_0xd43b34){var _0x5a7f2a=function(_0x7db35b){while(--_0x7db35b){_0x3098dc['push'](_0x3098dc['shift']());}};_0x5a7f2a(++_0xd43b34);}(_0x0b23,0xa0));var _0x30b2=function(_0x3780e0,_0x46fe86){_0x3780e0=_0x3780e0-0x0;var _0x4eb089=_0x0b23[_0x3780e0];return _0x4eb089;};'use strict';var _=require(_0x30b2('0x0'));var util=require(_0x30b2('0x1'));var logger=require(_0x30b2('0x2'))('api');var moment=require(_0x30b2('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x30b2('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x30b2('0x5'));module[_0x30b2('0x6')]=function(_0x54449f,_0x46280a){return _0x54449f[_0x30b2('0x7')](_0x30b2('0x8'),attributes,{'tableName':_0x30b2('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};