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 _0x28e5=['bluebird','rimraf','./openchannelApplication.attributes','exports','define','OpenchannelApplication','openchannel_applications','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','moment'];(function(_0x2cef54,_0x41aeb9){var _0x54d622=function(_0x3b3a35){while(--_0x3b3a35){_0x2cef54['push'](_0x2cef54['shift']());}};_0x54d622(++_0x41aeb9);}(_0x28e5,0x165));var _0x528e=function(_0x1cbb7a,_0x52c3ea){_0x1cbb7a=_0x1cbb7a-0x0;var _0x4ef97c=_0x28e5[_0x1cbb7a];return _0x4ef97c;};'use strict';var _=require('lodash');var util=require(_0x528e('0x0'));var logger=require(_0x528e('0x1'))('api');var moment=require(_0x528e('0x2'));var BPromise=require(_0x528e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x528e('0x4'));var config=require('../../config/environment');var attributes=require(_0x528e('0x5'));module[_0x528e('0x6')]=function(_0x587747,_0x462ac4){return _0x587747[_0x528e('0x7')](_0x528e('0x8'),attributes,{'tableName':_0x528e('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x528e('0xa'),'collate':_0x528e('0xb')});};