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 _0x6d2e=['moment','bluebird','request-promise','rimraf','exports','CannedAnswer','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','api'];(function(_0x55cc8a,_0xf90869){var _0x356ab1=function(_0x1bbb09){while(--_0x1bbb09){_0x55cc8a['push'](_0x55cc8a['shift']());}};_0x356ab1(++_0xf90869);}(_0x6d2e,0x97));var _0xe6d2=function(_0x1e271f,_0xf14504){_0x1e271f=_0x1e271f-0x0;var _0x2b2ac5=_0x6d2e[_0x1e271f];return _0x2b2ac5;};'use strict';var _=require('lodash');var util=require(_0xe6d2('0x0'));var logger=require(_0xe6d2('0x1'))(_0xe6d2('0x2'));var moment=require(_0xe6d2('0x3'));var BPromise=require(_0xe6d2('0x4'));var rp=require(_0xe6d2('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe6d2('0x6'));var config=require('../../config/environment');var attributes=require('./cannedAnswer.attributes');module[_0xe6d2('0x7')]=function(_0x2b4bf0,_0x3c0fab){return _0x2b4bf0['define'](_0xe6d2('0x8'),attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xe6d2('0x9'),'collate':_0xe6d2('0xa')});};