Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / whatsappAccount / whatsappAccount.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 _0xd9c6=['api','moment','bluebird','path','rimraf','../../config/environment','./whatsappAccount.attributes','exports','define','WhatsappAccount','whatsapp_accounts','lodash','util','../../config/logger'];(function(_0x124f88,_0x3ad501){var _0xed0e3b=function(_0x43a67d){while(--_0x43a67d){_0x124f88['push'](_0x124f88['shift']());}};_0xed0e3b(++_0x3ad501);}(_0xd9c6,0x6d));var _0x6d9c=function(_0x29d1da,_0x5a7a44){_0x29d1da=_0x29d1da-0x0;var _0x43e3f8=_0xd9c6[_0x29d1da];return _0x43e3f8;};'use strict';var _=require(_0x6d9c('0x0'));var util=require(_0x6d9c('0x1'));var logger=require(_0x6d9c('0x2'))(_0x6d9c('0x3'));var moment=require(_0x6d9c('0x4'));var BPromise=require(_0x6d9c('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6d9c('0x6'));var rimraf=require(_0x6d9c('0x7'));var config=require(_0x6d9c('0x8'));var attributes=require(_0x6d9c('0x9'));module[_0x6d9c('0xa')]=function(_0x1e2289,_0x359eff){return _0x1e2289[_0x6d9c('0xb')](_0x6d9c('0xc'),attributes,{'tableName':_0x6d9c('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};