3c0f691c2f8fb7a239d26885afc0414a08e61822
[motion2.git] / server / api / cannedAnswer / cannedAnswer.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe9e8=['lodash','util','api','moment','bluebird','request-promise','path','rimraf','./cannedAnswer.attributes','exports','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0xe9e8,0x7e));var _0x8e9e=function(_0x76a220,_0x529c0f){_0x76a220=_0x76a220-0x0;var _0xa5227=_0xe9e8[_0x76a220];return _0xa5227;};'use strict';var _=require(_0x8e9e('0x0'));var util=require(_0x8e9e('0x1'));var logger=require('../../config/logger')(_0x8e9e('0x2'));var moment=require(_0x8e9e('0x3'));var BPromise=require(_0x8e9e('0x4'));var rp=require(_0x8e9e('0x5'));var fs=require('fs');var path=require(_0x8e9e('0x6'));var rimraf=require(_0x8e9e('0x7'));var config=require('../../config/environment');var attributes=require(_0x8e9e('0x8'));module[_0x8e9e('0x9')]=function(_0x217e7e,_0xded6f7){return _0x217e7e['define'](_0x8e9e('0xa'),attributes,{'tableName':_0x8e9e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x8e9e('0xc'),'collate':_0x8e9e('0xd')});};