6e5b5e72fff6ae6c11670fba9a9861843cf6c9a1
[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 _0x0f16=['utf8mb4_unicode_ci','lodash','util','../../config/logger','bluebird','request-promise','rimraf','../../config/environment','./cannedAnswer.attributes','define','CannedAnswer','tools_canned_answers','utf8mb4'];(function(_0x5362ea,_0x51f746){var _0x3ed993=function(_0x441da0){while(--_0x441da0){_0x5362ea['push'](_0x5362ea['shift']());}};_0x3ed993(++_0x51f746);}(_0x0f16,0x1d5));var _0x60f1=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x0f16[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require(_0x60f1('0x0'));var util=require(_0x60f1('0x1'));var logger=require(_0x60f1('0x2'))('api');var moment=require('moment');var BPromise=require(_0x60f1('0x3'));var rp=require(_0x60f1('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x60f1('0x5'));var config=require(_0x60f1('0x6'));var attributes=require(_0x60f1('0x7'));module['exports']=function(_0xfc8c76,_0x1b7568){return _0xfc8c76[_0x60f1('0x8')](_0x60f1('0x9'),attributes,{'tableName':_0x60f1('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x60f1('0xb'),'collate':_0x60f1('0xc')});};