9bd4f2ed5f42526cba93cbf177d07ea6acc5bb1b
[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 _0xfbf2=['./cannedAnswer.attributes','define','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0xb76d11,_0x1023f2){var _0x20af7c=function(_0x545a1f){while(--_0x545a1f){_0xb76d11['push'](_0xb76d11['shift']());}};_0x20af7c(++_0x1023f2);}(_0xfbf2,0x102));var _0x2fbf=function(_0x3e15ee,_0x2ebf1a){_0x3e15ee=_0x3e15ee-0x0;var _0xe15522=_0xfbf2[_0x3e15ee];return _0xe15522;};'use strict';var _=require(_0x2fbf('0x0'));var util=require('util');var logger=require(_0x2fbf('0x1'))(_0x2fbf('0x2'));var moment=require(_0x2fbf('0x3'));var BPromise=require(_0x2fbf('0x4'));var rp=require(_0x2fbf('0x5'));var fs=require('fs');var path=require(_0x2fbf('0x6'));var rimraf=require(_0x2fbf('0x7'));var config=require('../../config/environment');var attributes=require(_0x2fbf('0x8'));module['exports']=function(_0x3cb940,_0x38e936){return _0x3cb940[_0x2fbf('0x9')](_0x2fbf('0xa'),attributes,{'tableName':_0x2fbf('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2fbf('0xc'),'collate':_0x2fbf('0xd')});};