1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xc5dd=['define','SmsApplication','sms_applications','utf8mb4','utf8mb4_unicode_ci','lodash','util','bluebird','request-promise','../../config/environment','exports'];(function(_0x16b9ed,_0x56517a){var _0x66b1f8=function(_0x1c883){while(--_0x1c883){_0x16b9ed['push'](_0x16b9ed['shift']());}};_0x66b1f8(++_0x56517a);}(_0xc5dd,0x170));var _0xdc5d=function(_0x403257,_0x481841){_0x403257=_0x403257-0x0;var _0xa38ef0=_0xc5dd[_0x403257];return _0xa38ef0;};'use strict';var _=require(_0xdc5d('0x0'));var util=require(_0xdc5d('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xdc5d('0x2'));var rp=require(_0xdc5d('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xdc5d('0x4'));var attributes=require('./smsApplication.attributes');module[_0xdc5d('0x5')]=function(_0xd0bcd1,_0x240792){return _0xd0bcd1[_0xdc5d('0x6')](_0xdc5d('0x7'),attributes,{'tableName':_0xdc5d('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xdc5d('0x9'),'collate':_0xdc5d('0xa')});};