2ed9034ab4cf339cc8babc4690a5a62def26c974
[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 _0x90be=['lodash','util','../../config/logger','moment','../../config/environment','./whatsappAccount.attributes','define','WhatsappAccount','whatsapp_accounts'];(function(_0x9df060,_0x253d33){var _0x338dfe=function(_0x17d9a5){while(--_0x17d9a5){_0x9df060['push'](_0x9df060['shift']());}};_0x338dfe(++_0x253d33);}(_0x90be,0x1b9));var _0xe90b=function(_0x27e5d8,_0x5c0dc7){_0x27e5d8=_0x27e5d8-0x0;var _0x113ee2=_0x90be[_0x27e5d8];return _0x113ee2;};'use strict';var _=require(_0xe90b('0x0'));var util=require(_0xe90b('0x1'));var logger=require(_0xe90b('0x2'))('api');var moment=require(_0xe90b('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xe90b('0x4'));var attributes=require(_0xe90b('0x5'));module['exports']=function(_0xc35325,_0x30e244){return _0xc35325[_0xe90b('0x6')](_0xe90b('0x7'),attributes,{'tableName':_0xe90b('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};