d433a7582b8d0319710e13b68e5a11945802ac1d
[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 _0x220b=['utf8mb4_unicode_ci','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers','utf8mb4'];(function(_0x475425,_0x4b0d55){var _0x71bbe=function(_0x2a5b15){while(--_0x2a5b15){_0x475425['push'](_0x475425['shift']());}};_0x71bbe(++_0x4b0d55);}(_0x220b,0x151));var _0xb220=function(_0x1e6659,_0x1f860c){_0x1e6659=_0x1e6659-0x0;var _0x4d16e4=_0x220b[_0x1e6659];return _0x4d16e4;};'use strict';var _=require(_0xb220('0x0'));var util=require(_0xb220('0x1'));var logger=require(_0xb220('0x2'))(_0xb220('0x3'));var moment=require('moment');var BPromise=require(_0xb220('0x4'));var rp=require(_0xb220('0x5'));var fs=require('fs');var path=require(_0xb220('0x6'));var rimraf=require(_0xb220('0x7'));var config=require(_0xb220('0x8'));var attributes=require(_0xb220('0x9'));module[_0xb220('0xa')]=function(_0x1ec1c3,_0x15d0fd){return _0x1ec1c3[_0xb220('0xb')](_0xb220('0xc'),attributes,{'tableName':_0xb220('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xb220('0xe'),'collate':_0xb220('0xf')});};