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 _0x8d7e=['../../config/environment','./chatApplication.attributes','exports','define','ChatApplication','chat_applications','utf8mb4','utf8mb4_unicode_ci','lodash','../../config/logger','moment','bluebird','request-promise'];(function(_0x1abb09,_0x18ee91){var _0xea1c07=function(_0x38f42c){while(--_0x38f42c){_0x1abb09['push'](_0x1abb09['shift']());}};_0xea1c07(++_0x18ee91);}(_0x8d7e,0x7d));var _0xe8d7=function(_0x4c11cc,_0x594f6b){_0x4c11cc=_0x4c11cc-0x0;var _0x2bd137=_0x8d7e[_0x4c11cc];return _0x2bd137;};'use strict';var _=require(_0xe8d7('0x0'));var util=require('util');var logger=require(_0xe8d7('0x1'))('api');var moment=require(_0xe8d7('0x2'));var BPromise=require(_0xe8d7('0x3'));var rp=require(_0xe8d7('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xe8d7('0x5'));var attributes=require(_0xe8d7('0x6'));module[_0xe8d7('0x7')]=function(_0x55ee54,_0x1d8a65){return _0x55ee54[_0xe8d7('0x8')](_0xe8d7('0x9'),attributes,{'tableName':_0xe8d7('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xe8d7('0xb'),'collate':_0xe8d7('0xc')});};