Built motion from commit 25580385.|2.6.2
[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 _0x1021=['request-promise','./whatsappAccount.attributes','define','WhatsappAccount','whatsapp_accounts','lodash','util','api','moment','bluebird'];(function(_0x6a4faf,_0x3aa856){var _0x3bdbcc=function(_0x2d77ee){while(--_0x2d77ee){_0x6a4faf['push'](_0x6a4faf['shift']());}};_0x3bdbcc(++_0x3aa856);}(_0x1021,0xcd));var _0x1102=function(_0x478978,_0x287bd7){_0x478978=_0x478978-0x0;var _0x48cac6=_0x1021[_0x478978];return _0x48cac6;};'use strict';var _=require(_0x1102('0x0'));var util=require(_0x1102('0x1'));var logger=require('../../config/logger')(_0x1102('0x2'));var moment=require(_0x1102('0x3'));var BPromise=require(_0x1102('0x4'));var rp=require(_0x1102('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x1102('0x6'));module['exports']=function(_0x3afd64,_0xafcde2){return _0x3afd64[_0x1102('0x7')](_0x1102('0x8'),attributes,{'tableName':_0x1102('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};