5e9e690134cb91d15e518b7d903170bc9e48ecd0
[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 _0xd0eb=['bluebird','request-promise','rimraf','./cannedAnswer.attributes','exports','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','lodash','util','moment'];(function(_0x437af4,_0x18377f){var _0x327d7c=function(_0x355302){while(--_0x355302){_0x437af4['push'](_0x437af4['shift']());}};_0x327d7c(++_0x18377f);}(_0xd0eb,0x11b));var _0xbd0e=function(_0x2c96f6,_0x877207){_0x2c96f6=_0x2c96f6-0x0;var _0x6d4808=_0xd0eb[_0x2c96f6];return _0x6d4808;};'use strict';var _=require(_0xbd0e('0x0'));var util=require(_0xbd0e('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xbd0e('0x2'));var BPromise=require(_0xbd0e('0x3'));var rp=require(_0xbd0e('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xbd0e('0x5'));var config=require('../../config/environment');var attributes=require(_0xbd0e('0x6'));module[_0xbd0e('0x7')]=function(_0x3e7f75,_0x22a550){return _0x3e7f75['define']('CannedAnswer',attributes,{'tableName':_0xbd0e('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xbd0e('0x9'),'collate':_0xbd0e('0xa')});};