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 _0xfc81=['bluebird','request-promise','rimraf','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','api','moment'];(function(_0x29f80e,_0x9027ff){var _0x5c7eaa=function(_0x48ec7c){while(--_0x48ec7c){_0x29f80e['push'](_0x29f80e['shift']());}};_0x5c7eaa(++_0x9027ff);}(_0xfc81,0x88));var _0x1fc8=function(_0x4df1f5,_0x39c6d2){_0x4df1f5=_0x4df1f5-0x0;var _0x56585b=_0xfc81[_0x4df1f5];return _0x56585b;};'use strict';var _=require('lodash');var util=require(_0x1fc8('0x0'));var logger=require(_0x1fc8('0x1'))(_0x1fc8('0x2'));var moment=require(_0x1fc8('0x3'));var BPromise=require(_0x1fc8('0x4'));var rp=require(_0x1fc8('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x1fc8('0x6'));var config=require('../../config/environment');var attributes=require(_0x1fc8('0x7'));module[_0x1fc8('0x8')]=function(_0xf6e38a,_0x392f22){return _0xf6e38a[_0x1fc8('0x9')](_0x1fc8('0xa'),attributes,{'tableName':_0x1fc8('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x1fc8('0xc'),'collate':_0x1fc8('0xd')});};